Cybercrux

Everything is achievable through technology

6 thoughts on “Tips & Tricks

  1. For open a Link
    onclick=”window.open(‘http://111.118.249.195:81/Client/Index.cfm’,’_blank’)
    _parent,_blank

  2. Change class of div

    document.getElementById(“C1”).className = “active”;

  3. change value of input
    document.getElementById(“hidPeriod”).value = “6”;

  4. Maintain selection of menu

    function MenuTop() {
    var strURL = window.location.href.toUpperCase();

    if (strURL.indexOf(“/EQUITY/”) >= 0 ) { document.getElementById(“menuequity”).className = “current” }
    }

  5. Placeholder equivalent function
    value=”First Name” onfocus=”if(this.value == ‘First Name’) { this.value = ”; }” onblur=”if(this.value == ”) { this.value = ‘First Name’; }”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s