How do I tell javascript or safari to click a link

I just need help with the applescript to tall safari to click a link.
I assume I would need something from the source code. What would that information be and how would I apply it to my script?

If you know the function, then you can tell Safari to do it using Javascript. I have a refresh button on a modem page that calls the function location.reload(), which I can call like this:
tell app "Safari"
do Javascript "location.reload()" in document 1
end
(document 1 is the frontmost document)
I think that should do what you want, but ask back if not.

Similar Messages

  • How do I enable JavaScript in safari on my iPad?

    I can't see certain videos on websites. I get a message to enable JavaScript or install Adobe flash. I went to settins and enabled JavaScript, but still not getting video.

    an1112 wrote:
    I can't see certain videos on websites. I get a message to enable JavaScript or install Adobe flash. I went to settins and enabled JavaScript, but still not getting video.
    The website may have a preference for Flash before using Javascript.  Try a different browser like Skyfire (or whatever.)  Regardless, if it's using Flash, it's probably not going to work very well with the iPad.
    Tgara wrote:
    As has been discussed here about a trillion times, there is no Flash or Java on the iPad.  You are SOL.
    Just an FYI, Java is not the same a Javascript.  Safari on the iPad has Javascript, but not all websites work correctly with mobile versions of web browsers.

  • How do I enable JavaScript on Safari?

    I need help on how to enable JavaScript on my ipad mini.

    Settings > Safari > Advanced > JavaScript

  • How do I tell DW (CS3) to stop modifying my links in library snippets?

    Hi Folks,
    Is there a way to tell DW CS3 not to modify the snippet of
    code that I've added to the library for my footer?
    Specifically, I want it to leave my anchor-tag link paths
    alone.
    - GR

    Consider this -
    A library item is located in the Library folder. It contains
    a link to your
    HOME page. That link MUST look like either this -
    <a href="/index.html"
    or this -
    <a href="../index.html"
    There are no other choices. If you MANUALLY make the link in
    the Library
    item look like this -
    <a href="index.html", as you seem to be stating, then DW
    cannot manage that
    link without adding the Library folder to the path, since the
    link implies,
    nay guarantees, that the page linked to is IN THE LIBRARY
    folder.
    Stop trying to control this. Let DW do it. It works just
    fine.
    Why on EARTH would you not want DW to manage your links?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Garrett R." <[email protected]> wrote in
    message
    news:ff0n12$4mt$[email protected]..
    > Thanks for the reply Murray, glad to have you guy's
    there!
    >
    > I am relatively new to DW; although not new to editors
    and html editors.
    > Overall, I think DW is the
    > best html editor that I've ever used.
    >
    > My pages are all in the site root folder and DW knows
    that. All my links
    > are
    > about as simple as you can
    > get, like "<a href="mypage.htm">.
    >
    > I disagree that any product should feel like it must
    change a link like
    > this
    > or anything in a code-snippet. In this case it's
    redundant, annoying, and
    > it
    > was causing a problem with my local rendering, until I
    changed the links
    > back.
    > I'm getting the impression that the answer to my
    question is that there is
    > no
    > way to tell DW not to do this? I would like to have the
    ability
    > to turn "link management" off. Maybe this is something
    that the DW
    > development team would consider.
    >
    > - GR
    >

  • How to perform expand and collapse operation on click of link or button

    Hi
    Is there anyway by which i can perform expand and collapse operation over a table on click of a command link or button without using show details component.
    Is there any other alternative to show detail.
    I do not want to use show detail because of the following reason.
    I have got a page where in i pass some parameters to the URL based on which details get displayed on the page.
    Now when i pass a parameter, change the parameter, once again send the previously used parameter(i,e the parameter that i passed initially), values in the table under show detail do not show any change in values.
    Once i pass values which i have already passed, values in the table under show detail component do not refreshed.
    If anyone has encountered with similar situation, then please post me reply's as to how you could over come the problem??

    Hi
    Perhaps you could use an on-demand application process instead - you can specify these in the URL.
    The URL syntax (for your link) would be like...
    f?p=application_id:page_id:session:APPLICATION_PROCESS=process_idIs this what you mean?
    Cheers
    Ben

  • My safari won't work unless I click a link?

    Recently I used AdwareMedic to clean off adware that had made its way on my computer.  Once it was cleaned, I restarted my computer to be safe.  Since the restart, every time I open my Safari a page comes up that states, "Safari Can't Open the Page."  It goes on to state that the server unexpectedly dropped the connection, and to wait a few minutes then try again.  However, time isn't helping my problem.  I've restarted it again, I've updated my software, and I can't find any other discussions about this. (Forgive me if I've just missed it.)  Then, I tried to click a link that was texted to me through the Messages app, and Safari worked (mostly).  Some websites still wouldn't work, but I could get on most everything else.  Does anyone know how to fix this problem?  I'd like to use Safari without clicking a link that was sent to me through a text.  Thank you very much.
    (-Safari 8.0.2; -4 GB memory; 261.98 GB free of 319.21 GB; -2.66 GHz)

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your documents or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this behavior; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Please take this step regardless of the results of Step 1.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • I'm told there is a virus associated with Adobe Reader. How can I tell if my machine is effected and if so what is the cure. I'm running OS X10.6.8 on an iMac with safari 5.1.5

    I'm told there is a virus associated with Adobe Reader. How can I tell if my machine is effected and if so what is the cure. I'm running OS X10.6.8 on an iMac with safari 5.1.5

    There are no viruses currently affecting the Mac but there is something called Flashback which is malware that has been doing the rounds and affected many Mac users. Apple have released some updates to Java that should remove it and improve protection. Run Software Update to see if there is anything for downloading.
    A few precautions that can help prevent your Mac becoming infected:
    If you use Flash only download it directly from Adobe.
    In all web browsers disable Java (but do leave Javascript on as that's something else).
    In all web browsers make sure downloaded files aren't set to automatically open after downloading.
    Consider disabling Java completely (launch Java Preferences in the Utilities folder and disable it - you'll likely rarely, if ever need it. If you do just turn it on and off again when your done).
    You can also check out this link:
    http://lifehacker.com/5900434/how-to-find-out-if-your-mac-was-infected-by-the-fl ashback-trojan-in-one-click

  • How do I tell Preview/Safari not to date-stamp when I print/save a webpage?

    How do I tell Preview/Safari not to date-stamp when I print/save a webpage as a PDF?
    There doesn't appear to be a Preference for this. Thanks.

    Oops, sorry, I was planning on selecting "helpful" and then "solved" for your reply, but the "solved" button has disappeared. Looks like I can only pick one.

  • Hi there. Any one can tell me how erase cookies under the new safari Version 5.1 (7534.48.3)? Any one?

    Hi there. Any one can tell me how erase cookies under the new safari Version 5.1 (7534.48.3)? Any one?

    Click on the Safari menu then click on preferences the click the security icon.

  • How do I tell Safari to play a live stream always in QuickTime?

    I like to watch a television station from Eastern Europe that streams live on the internet. When I click on the link, the content plays in Windows Media Player. Recently, purely by fluke, it opened in QuickTime and I really preferred this version. Unfortunately I have been unable to repeat this fluke. There is nothing in Safari, QuickTime, or WMP preferences relevant to this issue. I have inputted the link's URL where QuickTime prompts me, but it does nothing.
    Is there a way I can tell Safari to open the link in QuickTime whenever I select the link?
    (Both my Safari and QuickTime use the latest versions.)

    If the content is playing in Windows Media Player, you will be better off installing Flip4Mac which will allow a Quicktime window to open. Microsoft no longer supports WMP for Macs and recommends all Mac users to use Flip4Mac. This software can be found on Versiontracker and Macupdate as well as the manufactures website for download.

  • How can I tell if Adobe Flash is installed properly and upto date version?

    How can I tell if Adobe Flash is installed properly and upto date version?
    Hi Guys and girls, hopefully an easy question for you.
    I installed Adobe flash and lightsource last night, cos I needed it to run Weebly website maker.
    Anyone know if Weebly runs correctly on 10.9.1??
    I have a new comp, so no previous version of flash on here, I am running OSX 10.9.1
    I just want to know How I can tell if Adobe Flash is installed properly and is the upto date version?
    Where do I go in the comp to find out,
    If I type in Adobe flash into search it only brings up flash manager, when I click this it is an uninstaller program.
    Lightsource shows in finder apps.
    If I type in flash player it shows up in plugins with a version number see screen shot.
    Where would I go to check for updates for things like flash on my comp?
    Thanks Team,
    Jason in oz.   :?):)  

    1. Safari > Preferences > Security > Internet Plug-ins
        Allow Plug-ins
    2. Go to this Adobe site to check. You will see the animation above the tree.
    How to know whether AdobeFlash Player is installed
    http://helpx.adobe.com/flash-player.html?promoid=ISMRY

  • How can you tell which files have backed up to external hard drive using Time Machine?

    Hello Mac Users,
    I have Macbook Pro (early 2011) and recently purchased a WD My Passport for Mac external HD. I have completed a back up using Time Machine, however how do I tell what files actually were backed up? I have a ton of audio, documents and photos that I would like on there. Its a 2 TB HD, my memory is 750 GB... Im using 632. At end of back up, the drive still had 1.88 TB left. Any help would be appreciated! Thanks
    Linz19

    This procedure is a diagnostic test. It makes no changes to your data.
    Please triple-click anywhere in the line below on this page to select it:
    tmutil compare | open -ef
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    Paste into the Terminal window by pressing command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    The command may take several minutes to run. Wait for a new line ending in a dollar sign ($) to appear below what you entered.
    A TextEdit window will open with the output of the command. Don't post all the output; just read it yourself. Each line that begins with a plus sign (“+”) represents a file that has been added to the source volume since the last snapshot was taken. These files have not been backed up yet.
    Each line that begins with an exclamation point (“!”) represents a file that has changed on the source volume. These files have been backed up, but not in their present state.
    Each line that begins with a minus sign (“-“) represents a file that has been removed from the source volume.
    Files that you’ve excluded from backup, or that are excluded automatically, are ignored.
    At the end of the output, you’ll get some lines like the following:
    Added:
    Removed:
    Changed:
    These lines show the total amount of data added, removed, or changed on the source(s) since the last snapshot.
    Caution: Under some conditions, tmutil may falsely flag files as not having been backed up when in fact they have been. It can be confused by multi-linked files, or by files with a modification date earlier than the one in the snapshot. This will not be an issue for most users. If the results of the above procedure surprise you, inspect your snapshots directly.

  • How do you tell if your a victim of the recent java hack and what to do

    so watching the news, how do you tell if your mac was affected, and is there anything you can do to fix it if you are in fact "hacked" thx

    Other than updating  Java, there is no perfect way to detect an attack.
    You may not have Java installed after all. You can check it.
    Finder > Application > Utilities > Java Preferences
    Click "Java Preferences".
    If a pop-up opens up offering to "Install", Mac does not have Java installed.
    Click "Not Now" button and close the Application folder.
    Safari > Preferences > Security > Web content:
    If the box next to "Enable Java" is checked, uncheck it.
    Best.

  • How can i tell if i have flashback malware

    How can I tell if I have the flashback malware? Will installing the latest security update get rid of the malware /virus and protect my computer?

    Here's what I am suggesting as a rudimentary test for some of the known strains of the flashback trojans.  Open a terminal window and copy/paste each of the following lines hitting return after each one and note the results:
    defaults read ~/.MacOSX/environment
    defaults read /Applications/Safari.app/Contents/Info LSEnvironment
    ls -la ~/Library/LaunchAgents
    grep "/Users/$USER/\..*" ~/Library/LaunchAgents/*
    For the two defaults command if you get anything other than a "does not exist" error message post the results since you are almost certainly infected.
    The third command, ls, just lists the contents of your LaunchAgents, if any.  That's additional info to be used in conjunction with the last grep command.  If the grep shows any results then that too may indicate infection and again post its results.

  • How does one tell if the J2EE services are running with Unlimited

    How does one tell if the J2EE services are running with Unlimited
    security? We have applied the export Policy to the server but we do notsee any reference to it running with it. .we apply the Service packs SAP now upgrades that JAVA as well . Do that process treat the JAVA
    lib/security area correctly.

    Just out of curiosity... Is there something you do
    like about Mac/Apple?
    To answer your question: no, not really. However, the points that I made here were about Safari and accompanying utilities, not about Apple in general.
    If it makes you feel any better, I am just as, or even more, critical of Micro$oft as the occasions arise...Windoze Vista is the most recent occasion and has given sufficient reasons and opportunities to vent my spleen that I actually have eased up on Apple, politicians, nut-case religious extremists, cell phone owners, and the Department of Homeland Paranioa, etc., due to an exhaustion of creative energy.

Maybe you are looking for

  • Basic query in Oracle Spatial

    I'm trying to learn Oracle Spatial working with 11g R2 and with 3D georeferenced data (specifically data describing buildings in a city). But I'm having trouble getting a basic query to work on my dataset (it works for the book example), and I'm tryi

  • Printing REPORT1 to Tray1, REPORT2 to Tray2

    I am trying to automate two different reports so that one Reports Paper Source is TRAY1 and the Other Reports Paper Source is TRAY2. I have tryed using printer definition files with escape sequences, but they only seem to work when DESTYPE=file. I ne

  • JCOP Tools don't detect Omnikey Cardman 3121 reader in activation

    Hello, I am trying to activate the JCOP Tools in my MacOS X, but my reader isn't detected by Eclipse / JCOP Tools. I have installed pcsc lite 1.4.4, and used pcsctest to check if the reader is working, and it seems to be ok: xxx:~ tuxed$ pcsctest MUS

  • What is the difference between 4.7c and ECC6

    Hi What are the major differences or the best features in ECC 6.0 for our ABAP Regards laxman

  • Ready 2 publish/choose hostingprovider ???

    In order 2 put my site live on the internet,i've got 2 choose my hostingprovider,in wich i've got 2 possibillities : A ; choose   " Complete Adobe Business Catalyst " B ; choose an other provider. As 4 my question : How 2 choose an other provider and