How to Remove an Address Bar in HTML
Programming basic HTML Web pages has been simplified with the maturation of word processing technologies and text editors. You don't have to purchase advanced programming software to create Web pages, since they can be created in most word processing programs. Nevertheless, you may need to create an HTML page that displays a pop-up window without the Web browser's address bar, from within the HTML document, to display a notice for information on your website, for example.
Instructions
-
-
1
Open the application that you use for HTML page editing by double-clicking the program icon listed on your computer's desktop or by selecting the application from the "Program Files" sub-menu of the "Start" menu.
-
2
Open the desired Web page in the editor. Most editors will provide a shortcut HTML "page open" button on the primary application window, or alternatively through the "File" and "Open" menu dialogue.
-
-
3
Enter the following JavaScript text between the opening and closing "body" tag elements of the HTML code. This code provides the foundation for displaying a pop-up window when the Web page is opened.
<script language="javascript">
function openWebsiteWindow()
{
}
</script> -
4
Add the predefined Javascript method to open another HTML window, between the opening and closing brackets of the code entered in Step 3. This code will open a window--without the address bar--that is 400 pixels by 375 pixels in size.
window.open ("myNotificationWindow.html", "My Notification Window", "height=400,width=375,status=no,toolbar=no,menubar=no");
-
5
Edit the HTML body tag to call the Javascript method defined previously when the Web page is loaded. The body tag's "onload" attribute is not normally defined, so you'll need to edit the HTML body tag to read:
<body onload="openWebsiteWindow();">
-
6
Save the Web page by selecting the "File" and "Save" menu buttons on the HTML editor. The Web page will now display the pop-up window without the address bar when then window is loaded.
-
1