Javascript Tutorial Part 29

myitcareer.org-Your IT Career Partner For Life. Please Bookmark It.
Homework Help | Buy Book | Buy Phone | Top Web Hosts | Hire Web Designer
Home | Interview Questions And Answers | Plan Wedding | Online Tuition
Top Domain Registrars | Hire Freelancer | Hosting Charges | Hindi News

Use this when you need to take advantage of HTML's presentational features because many of your
readers don't have the latest browsers that understand Cascading Style Sheets. XHTML 1.0 Frameset <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/frameset.dtd"> Use this when you want to use HTML Frames to partition the browser window into two or more frames. How to put a VBScript into an HTML document <html>
<head>
</head>
<body>
<script language="VBScript">
document.write("I am written using VBScript!")
</script>
</body>
</html> And it produces this output: I am written using VBScript! To insert a script in an HTML document, use the <script> tag. Use the language attribute to define the
scripting language. <script language="VBScript"> Then comes the VBScript: The command for writing some text on a page is document.write: document.write("I am written using VBScript!") The script ends: </script> How to handle older browsers Older browsers that does not support scripts will display the script as page content. To prevent them from
doing this, you can use the HTML comment tag: <script language="VBScript">
<!--
some statements
-->
</script> Where to put the VBScript
Previous| Next