To create a form dynamically using JavaScript on fly of the webpage. This which helps to create form and input controls dynamically. [javascript] /* To create form with javascript */ var form = document.createElement("form"); form.setAttribute(‘method’,"post"); // form method form.setAttribute(‘action’,"test.php"); // form action url form.setAttribute(‘name’,"frmName"); // form name form.setAttribute(‘id’,"frmId"); // form ID form.setAttribute(‘target’,"_blank"); // form target …
Tag: HTML
Permanent link to this article: https://blog.openshell.in/2013/12/dynamically-create-form-in-javascript-on-fly/
Jul 18
Turn off resize textarea
It is very easy to turn off the users ability to resize the textarea. To turn off this feature, use the following css code. This is used to remove the users ability to resize the textarea. [css] textarea{resize: none} [/css] The two properties that can be used are max-width and max-height. This will give the …
Permanent link to this article: https://blog.openshell.in/2013/07/turn-off-resize-textarea/
Dec 28
Enable .htaccess in Apache2
At first You should define, mod_rewrite is a part of Apache server that can rewrite requested urls on the fly. To enable in Ubuntu, you just need to write this command in terminal sudo a2enmod rewrite Then edit /etc/apache2/sites-available/default Find the following Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all and change …
Permanent link to this article: https://blog.openshell.in/2010/12/enable-htaccess-in-apache2/
Permanent link to this article: https://blog.openshell.in/2010/12/slideshow-using-jquery/
Dec 01
Quoting HTML attribute values
The values of attributes can contain text, hexadecimal color codes or numbers. In case of JavaScript event handlers, the values consist of small JavaScript code. A sincere advice for good and clean HTML coding is to always put quotes around attribute values. It is a good habit, will save you many headaches and avoid errors …
Permanent link to this article: https://blog.openshell.in/2010/12/quoting-html-attribute-values/
Dec 01
HTML mailto attribute
The HTML mailto is a quick way to add the facility of receiving feedback from visitor on the web site. when the visitor clicked the HTML mailto, It lanuches their email program with new email window. Note: HTML mailto assumes that the visitor has configured an email client (Outlook Express, Netscape Messenger, Thunderbird or any …
Permanent link to this article: https://blog.openshell.in/2010/12/html-mailto-attribute/
Nov 22
Refresh / Redirection
When you need your web page automatic refresh in 5 second or any second, use this meta tag. It’s a simple code, put it between HEAD tag in your web page. This script easy but powerful. <HEAD> <meta http-equiv=’refresh’ content=’2;url=’file_name or URL’> </HEAD> // content = time (second) // file_name = name of file you …
Permanent link to this article: https://blog.openshell.in/2010/11/refresh-redirection/