Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5955161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:04:28+00:00 2026-05-22T18:04:28+00:00

I have a script that opens a hyperlink with a variable to pull up

  • 0

I have a script that opens a hyperlink with a variable to pull up the particular account on the intranet. However, if the “module” is open already (80% of the hyperlink is the same), I would like to just keep the same tab/window open and refresh it.

Right now my Vbscript merely uses the script host and opens in a new tab each time. Since the user may have multiple tabs open, I’m not sure how to indentify if they have the link I want open and then use that window to refresh the data.

Begin pseudocode Script Sub

dim LINK as string
dim variableHere as string
LINK = "link/section/comments.aspx/account=" & variableHere & "&SID=11111"
variableHere = APIAccountNumberAccessed

IF ("link/section/comments.aspx/account=" exists)
then open hyperlink in same tab: LINK
else open in new tab
End IF

End pseudocode Sub

UPDATE:

I’ve made some progress in identifying that one can use the Window.Open method to set the target name and open a link. However, I’m still getting an error.

Syntax

set varWindow = Window.Open "google.com", "targetName", "toolbar=no, menubar=no, location=no, directories=no"

This provides me with the error expected end of statement, error code 800A0401, right in the Window open line. Still can’t get past this part.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T18:04:29+00:00Added an answer on May 22, 2026 at 6:04 pm

    This is an automatic feature if you reuse the targetName
    so, you can use same destination and targetName to have one tab per url. like this:

    Window.Open variableHere, variableHere, "toolbar=no, menubar=no, location=no, directories=no"
    

    i don’t remember if targetName accepts any strange character if not, you can replace

    validName = variableHere
    validName = replace(validName,"/","_")
    validName = replace(validName,".","_")
    validName = replace(validName,",","_")
    '... and so on ...
    Window.Open variableHere, validName, "toolbar=no, menubar=no, location=no, directories=no"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a script that opens Powerpoint from my application and exports all slides.
I have a Windows shell script that opens an application. I'd like to modify
i have a dialog box that opens on pageload for a site. script type=text/javascript>
I have a PHP script running on XAMPP in Windows XP that will open
I have a script that makes barplots, and opens a new window when 6
I have a makefile that invokes a python script that lives in the same
I have a greasemonkey script that opens an iframe containing a form from a
I have a jquery script box that opens up and it appears behind my
I have a vb script that processes text files on a server, however, very
I have this script that opens a new page inside a span: $(document).ready( function()

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.