Alpha Video Training
Results 1 to 3 of 3

Thread: using location.href

  1. #1
    "Certified" Alphaholic
    Real Name
    Larry Grupido
    Join Date
    May 2010

    Default using location.href

    When I want to open a new page using a button, I use the following inline javascript:

    location.href = 'mynewpage.a5w'

    But that opens the page into the same window.

    Is it possible to use a similar script to open the page in a new window?

  2. #2
    Volunteer Moderator Peter.Greulich's Avatar
    Real Name
    Peter Greulich
    Join Date
    Apr 2000
    Boston, MA

    Default Re: using location.href

    Try putting this in the target a5w page head section:

    <base target="_blank">

  3. #3
    Volunteer Moderator Steve Workings's Avatar
    Real Name
    Steve Workings
    Join Date
    Apr 2000
    The Dreaded Chair

    Default Re: using location.href

    location.href='mynewpage.a5w' target='blank'

Similar Threads

  1. Javascript functions and href
    By jacktheripper in forum Application Server Version 10 - Web/Browser Applications
    Replies: 2
    Last Post: 02-13-2012, 09:56 AM
  2. Trigger search criteria from a a href part or javascript ?
    By Steven P. in forum Application Server Version 10 - Web/Browser Applications
    Replies: 1
    Last Post: 08-03-2011, 06:06 AM
  3. href syntax in the body of a Libraried HTML email
    By PCS in forum Application Server Version 8
    Replies: 1
    Last Post: 07-09-2008, 04:52 PM
  4. href--> how to place alpha code
    By Willard in forum Web Application Server v6
    Replies: 5
    Last Post: 12-15-2004, 03:01 PM
  5. Location
    By James Peterson in forum Alpha Five Version 5
    Replies: 1
    Last Post: 11-25-2002, 07:17 AM


Posting Permissions

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