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
    Posts
    1,769

    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
    Location
    Boston, MA
    Posts
    11,643

    Default Re: using location.href

    Try putting this in the target a5w page head section:

    <head>
    <base target="_blank">
    </head>

  3. #3
    Volunteer Moderator Steve Workings's Avatar
    Real Name
    Steve Workings
    Join Date
    Apr 2000
    Location
    The Dreaded Chair
    Posts
    5,597

    Default Re: using location.href

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


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

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
  •