faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

76 of 103 people (74%) answered Yes
Recently 9 of 10 people (90%) answered Yes

Entry

JavaScript: Url: Open: How to: How to open a url in your web page? [self]

Apr 8th, 2008 18:02
ha mo, Knud van Eeden,


----------------------------------------------------------------------
--- Knud van Eeden --- 28 April 2005 - 04:11 pm ----------------------

JavaScript: Url: Open: How to: How to open a url in your web page?

---
---

Use

  self.location = <your url>

---
---

Steps: Overview:

 1. -Create the following source code

--- cut here: begin --------------------------------------------------

<SCRIPT>
  self.location = "http://www.faqts.com";
</SCRIPT>

--- cut here: end ----------------------------------------------------

 2. -Save this file as e.g.

      myTest.htm

 3. -Open this file in your web browser

 4. -It will then open a web page with that URL

      e.g.

       http://www.faqts.com

===

Tested successfully on
Microsoft Windows XP Professional (service pack 2),
running
Microsoft Internet Explorer v6.x

===

Internet: see also:

---



----------------------------------------------------------------------



http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com