SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    May 2006
    Location
    UK
    Posts
    95
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Opening 2 pages with one click

    This is probably quite a simple question so hope someone will be able to help me,
    All i want to do is -

    Visitors will have a choice of companies to read reviews on - when they clicks the companies link I want them directed to the review page (on my website) and also another browser which will display the company's site they are reading the review about is there a simple way i can do this please.

  2. #2
    SitePoint Member
    Join Date
    Aug 2006
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can use the href attribute to open the review page on your website. This will not open a new window but will keep the user on the same page, which is probably desirable if you are staying on your own website. Then use the onclick attribute and javascript to open a new window. For example:

    <a href="review_company1.html" onclick="window.open('http://www.company1.com/', 'newwin', 'width=600,height=500');return true;">Company 1</a>


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •