Posts Tagged ‘html’
The key to maximizing the browser window in Javascript is the window.resizeTo() function, which would resize the window to any specified size. The function somehow needs to get the screen’s width and height to be supplied as parameter, and the window itself need to be moved to the top left corner of the screen using [...]
Users registering for shared Linux webhosting accounts are normally not provided with shell access. Even if they do, what they can do with the shell is limited, as they are only in a jailed environment, thanks to CPanel’s jailshell. Displaying the SHELL variable at the command prompt verifies this;
$ echo $SHELL
/usr/local/cpanel/bin/jailshell
To briefly show what it [...]
When a browser doesn’t support Javascript, or simply have it disabled, it’s best to include an alternative non-Javascript content for the page to remain functional.
This is made possible with the noscript tag, and the example below will pop up the alert if Javascript is enabled or supported, and display the text instead if it doesn’t.
<script [...]
Javascript can be included in HTML by whether embedding it to the HTML file itself, or by calling an external file.
There are few options to include Javascript code into HTML, but current best practice is as in the example below;
<script type="text/javascript">
window.alert("Hello World")
</script>
The above example using type and MIME type, when called from anywhere in [...]
At the blogger’s admin panel, go to Settings -> Template, and click on the "Add a Page Element" link, and select "Text" from the selections.
On the editor that pops out, fill up the title, and for the content, click "Edit HTML" and add this lines to the text area:
<a href="http://yourblog.blogspot.com/rss.xml">
<img [...]
Meta tag http-equiv refresh is used to tell the browser to refresh or reload the page, and is usually placed in the <head> seaction of an HTML document.
<meta http-equiv="refresh" content="5"/>
The option content defines the time in second of how long should the browser wait to reload the page.
To redirect to another site, the [...]