| Opening a new window from a link |
In a similar manner to the previous tip, a 'pop-up box' can be launched using JavaScript. You can define the window size in pixels and specify whether to show scrollbars, toolbar, etc.
<SCRIPT LANGUAGE="JavaScript"> <!--//hide script from old browsers function launch() { open('totd/tipofday.htm', 'tipofday', 'resizable=yes, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, width=500, height=300') } document.write('<A HREF="javascript:launch()">Todays Tip</A>') //end hiding contents --> </SCRIPT>
You should also follow the above code with HTML for browsers that do not support JavaScript:
<NOSCRIPT><A TARGET="tipofday" HREF="totd/tipofday.htm">Today's tip</A>:</NOSCRIPT>
|
| Return to Listing |