| You are here: Home > Scripts > Bookmark page HTML |
| ||||||||||||||||||||
Back to ScriptsTutorial, How to Bookmark webpage in HTMLCreating a simple "Bookmark this webpage" link. The html script that sets the homepage only works for IE. It calls the following function, "this.setHomePage('http://someurl.com')" (see below) There are 4 HTML elements:
Let's extend this example and dynamically (using PHP), fill in the current page for us. This way we can re-use the same script on any webpage without having to edit the parameter for "this.setHomepage". ..this.setHomePage('<?php echo $_SERVER['DOCUMENT_ROOT'];?>').. The output: references: MSDN: HOW TO Set the Default Home Page Predefined Variables |
|
contact us: elouai@gmail.com ©2003-2022 eLouai.com, All rights reserved |