Ran into an (other) interesting Internet Explorer bug. Seems that if you have a form with only a single text input, hitting the enter button will not submit the form in IE.
<form action="" method="post"> <fieldset> <label for="user_name">User Name</label> [...]
Following code helps you to define any JS function to be called on page load. The tricky part of the code is that it waits until page is completely loaded.
<script> function init() { [...]
Ack:- Lunar Media
Have you ever needed to HtmlEncode a querystring using JavaScript? Yes you may say, and several people will claim that you should UrlEncode it using escape(str); For some unknown reason I tried doing exactly that and UrlDecode the variable in csharp with no luck. Instead I found a solution in the Prototype library, [...]
Type the following code in Address bar to fill the form fields named Ad1 and Ad2 wth certain text.
javascript:function A(){document.getElementById(‘Ad1′).value =”sadAS1″;document.getElementById(‘Ad2′).value = “sadAS2″;}setTimeout(‘A()’); void(0)
Share and Enjoy: