English 中文(简体)
Java中校正
原标题:Re-Focus Browser in Javascript when Dragging File from Desktop

当我把档案从桌面上拖到浏览器时,我把浏览器放在重点(Safari或PeFox,现在),我知道一切工作权(拖拉,带回信等)。 我也能够通过点击我的台 desktop(把浏览器放在桌面上)和当我把档案拖到浏览器时,我仍然能够处理冷却的拖拉事件。

我很想知道,在以下时候,我如何能够重新调整浏览器:

1) It s not in focus, and 2) when it s not in focus, I drag something over it.

我可以做如下事情:window.focus(),但这并没有把整个浏览器重新放在桌面上。 我需要用哪条js代码来调整浏览器,例如,当你把双倍拖到没有重点/模糊的麦克风窗上,并在第二或两条之后将注意力集中在一起的时候?

然后,它着手处理被拖拉的胎面。

最佳回答

Java稿不能像现在这样进入浏览器,也无法控制操作系统的焦点,而这正是你真正要求的。

问题回答

暂无回答




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签