Website jumping down on page load with embedded iframe google form - html

When someone navigates to a particular page with a google web form on it, the browser automatically jumps down to the google web form near the bottom of the page.
Website URL
Any ideas on how to keep it at the top of the page?
Thanks!
Jeff

Its due to the a field in the form getting focus, if you can stop that it wont jump down.
I've had a look at google forms and it doesn't look like there is a way to configure it not to set focus, you could try some custom javascript to stop it.

I can see from the URL shared that the original user's issue is now resolved, but fyi for others seeking a solution, if the Google Form is embedded via an iFrame, or you're using a custom HTML form to post answers to a Google form via the target of an iFrame, and this jumping occurs, changing the src='' of the iFrame to src='about:blank' worked a treat to eliminate any jumping of the page.

Related

Avoid cookies pop up window inside iframe?

I have an iframe that displays live prices of stock market. My problem is that when i load my page, this iframe shows a pop up window for cookies policy.
Is there anyway to avoid this window completely (or select "accept" in background) so that this iframe will directly show stock prices?
I found some information about sandbox option but could not go deeper with that
My website is the following and the iframe is on the down-left
https://grbusinessforum.com/
("Αποδέχομαι" is the button of "Accept cookies")
Thanks
Sandboxing the iframe can prevent all JS from running inside it, but that would probably break the page in other ways.
There's nothing you can do from outside the frame.
You'd need to change the page inside the frame instead. You could add a query string to the URL that it uses to disable the tracking cookies by default, or use postMessage to send a message into the frame that code there uses to remove the cookie prompt.
Of course, this will need the cooperation of the people who control the site you are displaying in the frame … but if they are happy for you to show their content on your page that shouldn't be too much of a problem, should it?

Inserting an iframe or Dynamic content into an info window?

I have a google map which is hooked up to a fusion table. Its pretty basic, lists street address, phone, and branch #.
I recently got a request though to add current weather to the info window that appears when a user clicks on a map marker.
Initially I thought I could just iframe this in, but it appears that google strips that HTML out of the info window when I add it in. I guess only basic html is allowed.
Does anyone know a way to throw dynamic content into that info window box or a way to get around google stripping out the iframe code?
The only iFrames I can get to work in fusion table map windows or cards are youtube embeds. Other iframes appear to get srtipped out as you say. It would be a good feature to be able to have universal iframe content instead of just google products.

HTML5 Banner using Google Web Designer

I have create a html5 banner using Google Web Designer following pretty much all the guidelines (https://support.google.com/webdesigner/answer/3261498?hl=en&ref_topic=3261495&rd=1).
I published it locally and uploaded to google adwords campaign as an Image add. In my banner there is a simple form for the user to enter basic details and submit it. So i have just one event on submit button. All good so far. After i uploaded the banner to google adwords, when i tested the banner the whole banner is clickable for some reason. Somehow google is appending a click event on the whole banner.
But according to docs (https://support.google.com/adwordspolicy/answer/176108?hl=en)
"HTML5 ads that are not created in Google Web Designer are, by
default, clickable on the entire area of the ad."
I used google web designer for this specific reason still i see the entire area clickable. Any ideas or suggestions or references would be great.
Thanks.
In Code view, add a higher z-index to the submit button so that it sits above the exit element.
I published it locally and uploaded to google adwords campaign as an Image add.
I think you should try to find a way to not upload as an Image Ad.
Google Adwords requires an exit/destination URL when you upload an ad on their platform disregarding what type of ad you upload.
That URL is assigned to your whole ad.
What you need is DoubleClick account. DoubleClick for advertisers will allow you specific button exits/destination URLs.

How to acomplish the Google Phone stay on top effect html?

Google phone opens up a small widget on the right of Gmail and stays there. Even when navigating to other emails or composing at email (similar effect is achieved I believe by Facebook chat).
Are they using frames? I hope not.
I need to keep some images open while the user navigates other parts of the application so using the approach of google to place my image holders would be ideal.
I'm not familiar with google phone, but maybe an iframe is what you are after:
http://www.w3schools.com/tags/tag_iframe.asp
It's an inline reference to another document.

Chrome Extension - Load popup whenever Facebook is visited?

I'm just starting on a Chrome extension. I want it to load a popup element whenever the browser loads a Facebook url.
Is this possible? And how? // ANSWERED.
Okay, then.
Now, I now how to make an extension that drops down in a small window at the top right of the page beneath the extension icons. *But how can I create a new div anywhere on the web page, like this buzzgrowl extension:http://buzzgrowl.com/ *?
Yep it's possible. You can trigger a popup in your javascript. Set it to work only on facebook.com.
You can also do javascript checking of the url via window.location.