Jump to content

Dealing with Tabs in IE


Go to solution Solved by dar100111,

Recommended Posts

Posted

Hey All,

I have a website I'm doing a tracking script for and the search button always creates a new tab initially.  I can use the second one to write my script out of.  Is there a good way to activate/delete tabs as the scripts going on?

I didn't know if they were considered unique windows with IE tabs.

Thanks!

Posted

Why not navigate to a search provider first instead of targeting the search bar?

  Reveal hidden contents

 

Posted

Hey Sons,

Just to clarify.  I'm already entereing the tracking number on the specific website in a tracking input.  It just opens up another tab when the search button is clicked on.  I need to use the new tab to get tables, all that good stuff.  Just wasn't sure the best way to deal with the tabs.

Thanks!

Posted (edited)

Well this is kind of a hack/workaround...

Since you say "tracking number" let's pretend it's the UPS website.

Local $sUrl = "ups.com"
_doSearch()
; After new tab opens, we're going to close the first tab. This will force tab 2 to focus.
$oIE = _IEAttach($sUrl, "url", 1)
_IEAction($oIE, "quit")
Edited by Mechaflash
  Reveal hidden contents

 

Posted

You're welcome Adventurer.

  Reveal hidden contents

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...